package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.common.request.SearchCommonFieldListReq;
import com.shuwen.gcdj.bean.common.request.SearchPagingCommonFieldListReq;
import com.shuwen.gcdj.bean.common.response.SearchCommonFieldListItemResp;
import com.shuwen.gcdj.entity.CommonField;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务模块分组与敏感字段关系(t_user_common_field)数据Mapper
 *
 * @author localhost_ubuntu
 * @since 2021-11-24 21:56:05
 * @description created by mybaits plus code generator
*/
@Mapper
public interface CommonFieldMapper extends BaseMapper<CommonField> {

    /**
     * 获取字段数据权限列表 - 分页
     *
     * @param bean SearchPagingCommonFieldListReq
     * @return List<SearchCommonFieldListItemResp>
     */
    IPage<SearchCommonFieldListItemResp> getPagingCommonFieldList(Page<SearchCommonFieldListItemResp> page, @Param("bean") SearchPagingCommonFieldListReq bean);


    /**
     * 获取字段数据权限列表 - 不分页
     *
     * @param bean SearchCommonFieldListReq
     * @return List<SearchCommonFieldListItemResp>
     */
    List<SearchCommonFieldListItemResp> getCommonFieldList(@Param("bean") SearchCommonFieldListReq bean);

}
